Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.forum.contentviews--contentViews

This contribution is part of XML component org.nuxeo.ecm.platform.forum.contentviews inside nuxeo-platform-forum-5.8.jar

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="forum_content">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
            <pattern>
              select * from Document where ecm:parentId = ? AND
              ecm:isCheckedInVersion = 0 AND
              ecm:mixinType != 'HiddenInNavigation'
              AND ecm:currentLifeCycleState !=
              'deleted'
            </pattern>
            <parameter>#{currentDocument.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>#{currentDocument.id}</cacheKey>
          <cacheSize>10</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="forum_listing_ajax" showCSVExport="false" showPDFExport="false" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="forum_content">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <pattern>
          select * from Document where ecm:parentId = ? AND
          ecm:isCheckedInVersion = 0 AND
          ecm:mixinType != 'HiddenInNavigation'
          AND ecm:currentLifeCycleState !=
          'deleted'
        </pattern>
        <parameter>#{currentDocument.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>#{currentDocument.id}</cacheKey>
      <cacheSize>10</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="forum_listing_ajax" showCSVExport="false" showPDFExport="false" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>

  </extension>